package com.wanyang.dto;

import lombok.Data;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 公益
 */
@Data
public class PostPublishWelfare extends PostPublishBase {
    private String content;
    private List<String> imgList;

    @Override
    public Object getDetailObject() {
        Map map = new HashMap<>();
        map.put("content", content);
        map.put("imgList", imgList);
        return map;
    }

    @Override
    public AuditObject getNeedAuditObject() {
        AuditObject auditObject = new AuditObject();
        auditObject.setContents(Collections.singletonList(content));
        auditObject.setImgList(imgList);

        return auditObject;
    }
}
